// 关于layout组件相关配置的仓库
import { defineStore } from "pinia";

const useLayoutSettingStore = defineStore('SettingStore', {
    state: () => {
        return {
            fold: false, //用户控制菜单折叠还是展开
            refresh: false, //用于控制页面刷新
        }
    },
    actions: {
        changeFold() {
            this.fold = !this.fold
        },
        changeRefresh() {
            this.refresh = !this.refresh
        }
    }
})

export default useLayoutSettingStore